package com.ruoyi.common.base.enums;



import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 水文接口类型枚举
 *
 * @author cx
 */
public enum CoalMineNameEnum {
    FLOW_RATE("1", "流量"),//100
    AMOUNT("2", "累加量"),//200
    WATER_LEVEL("3", "水位"),
    WATER_TEMPERATURE("4", "水温");

    private final String code;
    private final String type;

    CoalMineNameEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (CoalMineNameEnum armTypeEnum : CoalMineNameEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }


    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
